package com.gezi.admin.module.code.gentable.column.model;

/**
 * @Author 格子代码
 * @createDate 2024/2/10 09:00
 * @contact 1424529270@qq.com
 */
public enum CodeGenTableColumnQueryTypeEnum {

    EQ("等于",""),
    NE("不等于","不等于该值"),
    GT("大于","大于该值"),
    GTE("大于等于","大于等于该值"),
    LT("小于","小于该值"),
    LTE("小于等于","小于等于该值"),
    LIKE("模糊查询",""),
    BETWEEN("区间","");

    private String remark;
    private String placeholder;
    CodeGenTableColumnQueryTypeEnum(String remark, String placeholder) {
        this.remark = remark;
        this.placeholder = placeholder;
    }

    public String getRemark() {
        return remark;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    /**
     * 是否相同
     * @param name
     * @return
     */
    public boolean isSame(String name){
        return name().equals(name);
    }
}
